
function testApi() {
	let info = this.clientInfo
	let uid = this.current_uid
	return {
		errCode: 0,
		errMsg: '这是扩展Api测试',
		info,
		uid
	}
}

async function testSendPushMsg() {
	let pushParam = {
		user_id: this.current_uid,
		// user_id: '650fe0aaa09a9bd68bd01317',
		title: '发送通知消息测试',
		content: '发送目标：自己。这是测试发送通知消息时的内容部分', //"离线时显示的内容"
		path: false,
		payload:{
			type: "uni-im-notification", // im消息通知，比如加好友请求，有用户退群等
		}
	}
	
	return await this.commPushMsg(pushParam, this.clientInfo.appId)
}

function testLang(){
	
	
	return {
		errCode:0,
		errMsg:'测试多语言',
		tt:this.lang['zh-Hans']['测试']
	}
}

async function testPushMsg(){
	
	let pushParam = {
		user_id: this.current_uid,
		// user_id: '650fe0aaa09a9bd68bd01317',
		title: '发送通知消息测试',
		content: '发送目标：自己。这是测试发送通知消息时的内容部分', //"离线时显示的内容"
		path: false,
		payload:{
			type: "uni-im-notification", // im消息通知，比如加好友请求，有用户退群等
		}
	}
	
	return await this.commPushMsg(pushParam, this.clientInfo.appId)
}
module.exports = {
	testApi,
	testSendPushMsg,
	testLang,
	testPushMsg
}